import { Column, Entity, PrimaryColumn } from "typeorm"

@Entity({name: 'toutiao'})
export class Toutiao {
  @PrimaryColumn({
    comment: '新闻ID'
  })
  id: string

  @Column({
    comment: '新闻标题'
  })
  title: string

  @Column({
    comment: '新闻日期'
  })
  date: string

  @Column({
    comment: '分类'
  })
  category: string

  @Column({
    comment: '作者名称'
  })
  author_name: string

  @Column({
    comment: '原链接'
  })
  url: string

  @Column({
    comment: '新闻图片链接',
    length: 500,
    nullable: true
  })
  thumbnail_pic: string

  @Column({
    comment: '详情',
    length: 5000
  })
  content: string
  // "uniquekey": "db61b977d9fabd0429c6d0c671aeb30e",
  // "title": "“新时代女性的自我关爱”主题沙龙暨双山街道福泰社区妇儿活动家园启动仪式举行",
  // "date": "2021-03-08 13:47:00",
  // "category": "头条",
  // "author_name": "鲁网",
  // "url": "https://mini.eastday.com/mobile/210308134708834241845.html",
  // "thumbnail_pic_s": "https://dfzximg02.dftoutiao.com/news/20210308/20210308134708_d0216565f1d6fe1abdfa03efb4f3e23c_0_mwpm_03201609.png",
  // "thumbnail_pic_s02": "https://dfzximg02.dftoutiao.com/news/20210308/20210308134708_d0216565f1d6fe1abdfa03efb4f3e23c_1_mwpm_03201609.png",
  // "thumbnail_pic_s03": "https://dfzximg02.dftoutiao.com/news/20210308/20210308134708_d0216565f1d6fe1abdfa03efb4f3e23c_2_mwpm_03201609.png",
  // "is_content": "1"
}

